<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
        Created by IntelliJ IDEA.
        User: Administrator
        Date: 2022/11/12
        Time: 21:27
        To change this template use File | Settings | File Templates.
        --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>Title</title>
</head>
<h1>用户表格</h1>
<body><%
        List user=new ArrayList();
        user.add("陈恒辉");
        user.add("邹晓民");
        user.add("细狗");
        request.setAttribute("user",user);
        %>
<table border="1" width="60">
<c:forEach items="${requestScope.user}" var="str">
<tr>
<td>
                ${str}
</td>
</tr>
</c:forEach>
</table>

</body>
</html>
